#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import time
from threading import Thread, current_thread, enumerate, active_count


def test():
    print("线程: {} 开始".format(current_thread().name))
    time.sleep(1)
    print("线程: {} 结束".format(current_thread().name))


if __name__ == '__main__':
    t1 = Thread(target=test, name="线程1")
    t1.start()

    print(active_count())
    print("master")
